# -*- coding: utf-8 -*-
#!/usr/local/bin/python
# Author: yuxiangyu
# Date: Jun 9, 2022 10:09 AM
# =============================

'''
基础自定义装饰器, 提供一个写法用于其他相关装饰器的范式.
'''
from functools import wraps

# 请求基本方法
def base_decorator(func):
    @wraps(func)
    def wrapper(request, *args, **kwargs):
        print("请求路径%s" % request.path)
        return func(request, *args, **kwargs)
    return wrapper

